<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Web Solutions
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/05/28 21:56:36 $)
// $RCSfile: staff_comments.php,v $ : $Revision: 1.4 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

if (!defined("INSWIFT")) {
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}

if ($_SWIFT["staff"]["nw_entab"] == "0")
{
	echo '<font face="Verdana, Arial, Helvetica" size="2" color="red"><b>'.$_SWIFT["language"]["nopermission"].'</b></font>';
	exit;
}

require_once ("./modules/news/functions_news.php");
require_once ("./includes/functions_html.php");
require_once ("./includes/functions_users.php");
require_once ("./includes/functions_jscache.php");
require_once ("./includes/functions_comments.php");
$template->loadLanguageSection("news");

$interface->assignQuickLink($_SWIFT["language"]["news"], "index.php?_m=news&_a=managenews", "icon_newsitem.gif");
$interface->assignQuickLink($_SWIFT["language"]["subscribers"], "index.php?_m=news&_a=managesubscribers", "icon_subscribernotvalidated.gif");
$interface->assignQuickLink($_SWIFT["language"]["insertnews"], "index.php?_m=news&_a=insertnews", "icon_insertnewsitem.gif");
$interface->assignQuickLink($_SWIFT["language"]["importexport"], "index.php?_m=news&_a=importexport", "icon_export.gif");

/**
* ###############################################
* COMMENTS
* ###############################################
*/
if ($eventaction == "comments")
{
	$interface->staffHeader($_SWIFT["language"]["managenews"]." &gt; ".$_SWIFT["language"]["comments"], 7);

	$interface->staffNavBar('<a href="index.php?_m=news&_a=managenews" title="'.$_SWIFT["language"]["managenews"].'">'.$_SWIFT["language"]["managenews"].'</a> &raquo; <a href="index.php?_m=news&_a=comments" title="'.$_SWIFT["language"]["comments"].'">'.$_SWIFT["language"]["comments"].'</a>', "", 7);
	renderCommentGrids(COMMENT_NEWS);

	$interface->staffFooter();
}
?>